package cst.cn.edu.neusoft.xumingze224.yuejian_5.Model;


import cst.cn.edu.neusoft.xumingze224.yuejian_5.Bean.RegisterBean;
import cst.cn.edu.neusoft.xumingze224.yuejian_5.Listener.TListener;
import cst.cn.edu.neusoft.xumingze224.yuejian_5.Service.TService;
import cst.cn.edu.neusoft.xumingze224.yuejian_5.iface.RegisterIface;
import retrofit2.Call;
import retrofit2.Retrofit;


public class RegisterModel extends RetrofitBaseModel implements RegisterIface<RegisterBean> {
    Retrofit retrofit;
    TService tService;
    public RegisterModel(){
        retrofit=getRetrofit();
        tService=gettService();
    }



    @Override
    public void getRegister(String username, String userpass, String mobilenum, TListener<RegisterBean> tListener) {
        Call<RegisterBean> call=tService.register(username,userpass,mobilenum);
        callenqueue(call,tListener);
    }
}
